#!/bin/sh
#
# This is a fix for the fact that this laptop was bought
# when I worked for Navtones; so eventhough they attest
# to hold the copyright on code I wrote for which I never
# received a cent in compensation, they would have a hard
# time to lay claim on things I write now (but, I wouldn't
# put it past them.)
#
# So this will replace the Copyright Navtones with a copyright
# that is held by me.
#

# Write everything to a temp directory
out=.out
rm -rf $out
mkdir -p $out

# Replace Navtones -> Jeffrey Palm in all source files
all='Classes/* *.m'
for f in $all; do
    dir=`dirname $f`
    mkdir -p $out/$dir
    cat $f | sed -e 's/Navtones/Jeffrey Palm/g' > $out/$f
done

# Copy the resources back over
cp -R $out/* .